package com.example.gustavo.hello.model;

/**
 * Created by gustavo on 2015/4/10.
 */
public class HelloObj {


    /**
     * data : {"ip":"124.64.121.5","echo":"sf","time":"2015-04-10 13:48:24","version":"1.0"}
     * info : ok
     */
    private DataEntity data;
    private String info;

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public DataEntity getData() {
        return data;
    }

    public String getInfo() {
        return info;
    }

    @Override
    public String toString() {
        return "HelloObj{" +
                "data=" + data +
                ", info='" + info + '\'' +
                '}';
    }

    public class DataEntity {
        /**
         * ip : 124.64.121.5
         * echo : sf
         * time : 2015-04-10 13:48:24
         * version : 1.0
         */
        private String ip;
        private String echo;
        private String time;
        private String version;

        public void setIp(String ip) {
            this.ip = ip;
        }

        public void setEcho(String echo) {
            this.echo = echo;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getIp() {
            return ip;
        }

        public String getEcho() {
            return echo;
        }

        public String getTime() {
            return time;
        }

        public String getVersion() {
            return version;
        }

        @Override
        public String toString() {
            return "DataEntity{" +
                    "ip='" + ip + '\'' +
                    ", echo='" + echo + '\'' +
                    ", time='" + time + '\'' +
                    ", version='" + version + '\'' +
                    '}';
        }
    }
}
